package mylist;

import java.util.ArrayList;
import java.util.List;

/**
 * Desc:
 * @author: lisha 2018/6/14 17:09
 */
public class MyOneList {
    private List list =  new ArrayList<String>();

    synchronized public void add(String data){
        list.add(data);

    }
    synchronized public int getSize(){

        return list.size();
    }
}
